function TestCtrl() {
  this.user = {
    name: 'Blake'
  };
}

angular.module('app', ['ngRoute', 'myTemplates'])
  .config(['$routeProvider', function($routeProvider) {
    $routeProvider.when('/', {
        controller: 'TestCtrl as test',
        template: 'Hello {{ test.user.name }}!'
      })
      .when('/remote', {
        controller: 'TestCtrl as test',
        templateUrl: 'templates/test.html'
      })
      .when('/inline', {
        controller: 'TestCtrl as test',
        templateUrl: 'test.html'
      })
      .when('/run', {
        controller: 'TestCtrl as test',
        templateUrl: 'test2.html'
      })
      .when('/grunt', {
        controller: 'TestCtrl as test',
        templateUrl: 'templates/testMe.html'
      })
      .otherwise('/');
  }])
  .controller('TestCtrl', TestCtrl)
  .run(['$templateCache', function($templateCache) {
    $templateCache.put('test2.html', 'Hello {{ test.user.name }} from app run!');
  }]);